package org.brisling.docManage.domain;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;
import javax.persistence.Transient;

import org.brisling.base.domain.impl.BaseDocDomain;
import org.brisling.base.domain.inf.BaseDocDomainInf;
import org.brisling.base.domain.inf.BaseLobDomainInf;
import org.brisling.common.ConstSysParam;

import com.fasterxml.jackson.annotation.JsonFormat;


/**
 * 
 * 角色实体类
 * @author : jackson wang
 * @Date   : 2015年10月8日 下午10:01:07
 * @version: 1.0
 * 
 */
@Entity
@Table(name=ConstSysParam.MODULE_DOCDETAIL)
public class Docdetail extends BaseDocDomain implements BaseDocDomainInf,BaseLobDomainInf {

		
	@Transient
	private String shortname;
	
	//公开状态编码
	private Long state_id;
	
	//公开状态
	@Column(length=2)
	private String state;
	
	
	//发布开始时间
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	private Date public_date;
	
	//发布截止时间
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	private Date unpublic_date;
	
	//发布人
	@Column(length=50)
	private String public_user_id;
	
	@Column(length=50)
	private String public_user_name;
	
	//发布部门
	@Column(length=20)
	private String public_dept_id;
	
	@Column(length=50)
	private String public_dept_name;
	
	//审核状态
	@Column(length=10)
	private String status;
	
	//发布等级
	@Column(length=10)
	private String public_level;
	
	private Long public_level_id;
	
	//是否置顶
	@Column(length=2)
	private String isTop;
	
	@Column(length=2)
	private String isTop_id;
	
	//附件显示为页面内容
	@Column(length=2)
	private String archiveContent;
	
	private Integer archiveContent_id;
	
	@Transient
	private String show_title;
	
	//点击量
	private Integer click_count;

	//json扩展数据
	@Column(length=2000)
	private String form_content;
	public Long getState_id() {
		return state_id;
	}


	public void setState_id(Long state_id) {
		this.state_id = state_id;
	}


	public String getState() {
		return state;
	}


	public void setState(String state) {
		this.state = state;
	}



	public Date getPublic_date() {
		return public_date;
	}


	public void setPublic_date(Date public_date) {
		this.public_date = public_date;
	}


	public Date getUnpublic_date() {
		return unpublic_date;
	}


	public void setUnpublic_date(Date unpublic_date) {
		this.unpublic_date = unpublic_date;
	}


	public String getPublic_user_id() {
		return public_user_id;
	}


	public void setPublic_user_id(String public_user_id) {
		this.public_user_id = public_user_id;
	}


	public String getPublic_user_name() {
		return public_user_name;
	}


	public void setPublic_user_name(String public_user_name) {
		this.public_user_name = public_user_name;
	}


	public String getPublic_dept_id() {
		return public_dept_id;
	}


	public void setPublic_dept_id(String public_dept_id) {
		this.public_dept_id = public_dept_id;
	}


	public String getPublic_dept_name() {
		return public_dept_name;
	}


	public void setPublic_dept_name(String public_dept_name) {
		this.public_dept_name = public_dept_name;
	}


	public String getPublic_level() {
		return public_level;
	}


	public void setPublic_level(String public_level) {
		this.public_level = public_level;
	}


	public Long getPublic_level_id() {
		return public_level_id;
	}


	public void setPublic_level_id(Long public_level_id) {
		this.public_level_id = public_level_id;
	}


	public String getStatus() {
		return status;
	}


	public void setStatus(String status) {
		this.status = status;
	}


	public String getIsTop() {
		return isTop;
	}


	public void setIsTop(String isTop) {
		this.isTop = isTop;
	}


	public String getIsTop_id() {
		return isTop_id;
	}


	public void setIsTop_id(String isTop_id) {
		this.isTop_id = isTop_id;
	}


	public String getShortname() {
		return shortname;
	}


	public void setShortname(String shortname) {
		this.shortname = shortname;
	}


	public String getForm_content() {
		return form_content;
	}


	public void setForm_content(String form_content) {
		this.form_content = form_content;
	}


	public String getShow_title() {
		return show_title;
	}


	public void setShow_title(String show_title) {
		this.show_title = show_title;
	}


	public String getArchiveContent() {
		return archiveContent;
	}


	public void setArchiveContent(String archiveContent) {
		this.archiveContent = archiveContent;
	}


	public Integer getArchiveContent_id() {
		return archiveContent_id;
	}


	public void setArchiveContent_id(Integer archiveContent_id) {
		this.archiveContent_id = archiveContent_id;
	}


	/**
	 * @return the click_count
	 */
	public Integer getClick_count() {
		return click_count;
	}


	/**
	 * @param click_count the click_count to set
	 */
	public void setClick_count(Integer click_count) {
		this.click_count = click_count;
	}
	
	
}
